package com.gocoolmall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gocoolmall.common.utils.PageUtils;
import com.gocoolmall.member.entity.MemberEntity;
import com.gocoolmall.member.excepton.PhoneExsitException;
import com.gocoolmall.member.excepton.UserNameExsitException;
import com.gocoolmall.member.vo.MemberLoginVo;
import com.gocoolmall.member.vo.MemberRegistVo;
import com.gocoolmall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author zhangxiaobo
 * @email 1926992064@qq.com
 * @date 2020-12-09 22:51:08
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhoneUnique(String email) throws PhoneExsitException;

    void checkUserNameUnique(String userName) throws UserNameExsitException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(SocialUser socialUser) throws Exception;
}

